home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NOVA - For the NeXT Workstation
/
NOVA - For the NeXT Workstation.iso
/
Documents
/
NeXTAnswers
/
appkit.682
< prev
next >
Wrap
Text File
|
1992-02-06
|
2KB
|
50 lines
{\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fmodern Courier;}
\paperw12740
\paperh8500
\margl120
\margr120
{\colortbl\red0\green0\blue0;}
\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs28 Appkit TextFieldCell Alignment Scrollable Text \
\
Q:
\fc0 When I use the Action Cell method
\f1\fs24 setAlignment:
\f0\fs28 in conjunction with the Cell method
\f1\fs24 setScrollable
\f0\fs28 :, I experience some inconsistent behavior. If I have called
\f1\fs24 [myTextCell
\f0\fs28
\f1\fs24 setAlignment:NX_CENTERED]
\f0\fs28 and
\f1\fs24 [myTextCell setScrollable:YES]
\f0\fs28 , the display does not update in the cell. However, when the TextFieldCell is sent
\f1\fs24 [myTextCell setScrollable:NO]
\f0\fs28 , then the display works fine.\
\i \
\i0 A: The Text Object does not support scrolling for centered or right-justified text. To get proper display, you have to disable scrolling with
\f1\fs24 [myTextCell
\f0\fs28
\f1\fs24 setScrollable:NO]
\f0\fs28 when using the method
\f1\fs24 setAlignment
\f0\fs28 : with the values
\f1\fs24 NX_CENTERED
\f0\fs28 or
\f1\fs24 NX_RIGHTALIGNED
\f0\fs28 . If your text is left-justified, scrolling will work fine, i.e. you can use
\f1\fs24 [myTextCell setAlignment:NX_LEFTALIGNED]
\f0\fs28 with
\f1\fs24 [myTextCell setScrollable:YES]
\f0\fs28 .
\pard\tx1140\tx2300\tx3440\tx4600\tx5760\tx6900\tx8060\tx9200\tx10360\tx11520\fc0 \
\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc0 \
Valid for 1.0\
Valid for 2.0\
\
QA682\
\